package main

import (
	"flag"
	"fmt"
)


func main(){
	var user string
	var password string
	var host string
	var port int
	flag.StringVar(&user,"u","","用户名默认为空")
	flag.StringVar(&password,"p","","密码默认为空")
	flag.StringVar(&host,"h","localhost","主机默认为空")
	flag.IntVar(&port,"P",3306,"端口默认为空")
	flag.Parse()
	fmt.Printf("user = %v password = %v host = %v port = %d \n",user,password,host,port)
}